package com.wk1un2.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wk1un2.entity.Product;

public interface ProductMapper {
	// ��ȡ������Ʒ��Ϣ
	// ����������Ʒ����
	public List<Product> getAll(@Param("page") int page, @Param("limit") int limit, @Param("p_name") String p_name,
			@Param("p_state") Integer p_state);

	public List<Map<String, Object>> getProduct(@Param("p_id") Integer p_id);

	public Integer count();

	public Integer add(Map<String, Object> map);

	public Integer update(Map<String, Object> map);

	public void updateproductstate(@Param("p_id") Integer p_id, @Param("p_state") Integer p_state);

	public Integer delete(@Param("p_id") int p_id);
}